package com.pikaqiu.common;

/**
 * Created by Administrator on 2018/6/5.
 */
public enum ResponseCode {

    SUCCESS(0,"SUCCESS"),
    ERROR(1,"ERROR"),
    NEED_LOGIN(10,"NEED_LOGIN"),
    ILL_LOGIN(2,"ILL_LOGIN");

    private final int code;

    private final String desc;

    ResponseCode(int code, String desc) {
        this.desc = desc;
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
